﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.ComponentModel.DataAnnotations;
using System.Runtime.Serialization;

namespace WebUI.Models
{
    [Serializable]
    public class AccountModel
    {
        public string UserName { get; set; }
        public string Email { get; set; }
        public string[] Roles { get; set; }
        public DateTime Created { get; set; }
        public DateTime LastLoginDate { get; set; }
        public bool IsApproved { get; set; }
    }

    public class LogonModel
    {
        [Required]
        [Display(Name="用户名")]
        public string UserName { get; set; }

        [Required]
        [Display(Name="密码")]
        public string Password { get; set; }

        [Required]
        [Display(Name="验证码")]
        public string Vcode { get; set; }
    }
}